class rmm_ui_ChangeViewDistance {
	idd = 80505;
	movingEnable = 1;
	enableSimulation = 1;

	class controls {
		class Background : CUI_Frame {
			y = CUI_Row_Y(0);
			h = CUI_Row_DY(0,6);
			w = CUI_Box_W;
		};
		class Caption : CUI_Caption {
			text = "                    SELECT VIEW DISTANCE.";
			y = CUI_Row_Y(0);
			h = CUI_Row_DY(0,1);
			w = CUI_Box_W;
		};
		class Option1 : CUI_Button {
			text = "Increase by 500";
			w = CUI_Box_W;
			y = CUI_Row_Y(1);
			h = CUI_Row_DY(0,1);
			action = "if (viewdistance + 500 <= 10000) then {setviewdistance (viewdistance + 500)}; hint ('View = ' + str viewdistance)";
		};
		class Option2 : CUI_Button {
			text = "Decrease by 500";
			y = CUI_Row_Y(2);
			action = "if (viewdistance - 500 >= 500) then {setviewdistance (viewdistance - 500)}; hint ('View = ' + str viewdistance)";
		};
		class Option3 : CUI_Button {
			text = "Set to 1000m";
			y = CUI_Row_Y(3);
			action = "setViewDistance 1000; hint ('View = ' + str viewdistance)";
		};
		class Option4 : CUI_Button {
			text = "Set to 5000m";
			y = CUI_Row_Y(4);
			action = "setViewDistance 5000; hint ('View = ' + str viewdistance)";
		};
		class Disband : CUI_Button {
			text = "Close";
			y = CUI_Row_Y(5);
			action = "closedialog 0";
			default = true;
		};
	};
};